
set more off
capture log close
clear all
set matsize 10000

*** Specify User

if c(username) == "username" global folder "C:\...path\"


*** Set Relative Paths

global path "${folder}Replication_Package\"

global do_files 			"${path}do_files\"
global orig_data			"${path}orig_data\"
global regionalstatistik_in	"${path}orig_data\regionalstatistik\"
global altered_data			"${path}altered_data\"
global regionalstatistik_out "${path}altered_data\regionalstatistik\"
global plots				"${path}plots\"
global tables				"${path}tables\"
global maps					"${path}maps\"


*** Data preparation

do "${do_files}Corona_Meldedaten_RKI.do"
do "${do_files}population_age.do"
do "${do_files}merge_data.do" 
do "${do_files}mobility_google.do"
do "${do_files}mobility_google_closures.do"
do "${do_files}event_study.do"

*** Tables and Figures

do "${do_files}table1.do" 						// Summary Statistics
do "${do_files}figure1.do" 						// Map of school re-openings
do "${do_files}figure2.do" 						// Timeline 
do 	"${do_files}Chaisemartin_and_robustness.do" // 1. Main specification: Chaisemartin on county level and clusters on the state level. 
												// 2. Same but cluster on the county level 
												// 3. Same but no mobility control
												// 4. Same but no vaccination control
do  "${do_files}Chaisemartin_closures.do"		// Main specification for school closures at the beginning of the summer breaks										
do  "${do_files}figure_incidence_per_age.do"	// figures with average absolute incidences per age group
do  "${do_files}mortality.do"					// Main specification but with normalized deaths per age group as dependent variable


